#ifndef __MUTEX_H__
#define __MUTEX_H__
#include <pthread.h>

class Mutex {

	private:
		pthread_mutex_t mutex;
	public:
		/*Constructor*/
		Mutex();
		/*Obtiene el mutex*/
		int lock();
		/*Libera el mutex*/
		int unlock();
		/*Destructor*/
		~Mutex();
};

class Locking{
	
	private:
			Mutex& mutex;
	public:
	/*Constructor*/
	Locking(Mutex&m);
	/*Destructor*/
	~Locking();
};
	
	
	

#endif
